package BulkCmIRPSystem;


/**
 * Generated from IDL interface "BulkCmIRP".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public abstract class BulkCmIRPPOA
	extends org.omg.PortableServer.Servant
	implements org.omg.CORBA.portable.InvokeHandler, BulkCmIRPSystem.BulkCmIRPOperations
{
	static private final java.util.Hashtable m_opsHash = new java.util.Hashtable();
	static
	{
		m_opsHash.put ( "fallback", new java.lang.Integer(0));
		m_opsHash.put ( "download", new java.lang.Integer(1));
		m_opsHash.put ( "get_session_ids", new java.lang.Integer(2));
		m_opsHash.put ( "get_session_status", new java.lang.Integer(3));
		m_opsHash.put ( "get_session_log", new java.lang.Integer(4));
		m_opsHash.put ( "activate", new java.lang.Integer(5));
		m_opsHash.put ( "get_bulk_cm_irp_notification_profile", new java.lang.Integer(6));
		m_opsHash.put ( "abort_session_operation", new java.lang.Integer(7));
		m_opsHash.put ( "preactivate", new java.lang.Integer(8));
		m_opsHash.put ( "end_session", new java.lang.Integer(9));
		m_opsHash.put ( "start_session", new java.lang.Integer(10));
		m_opsHash.put ( "upload", new java.lang.Integer(11));
		m_opsHash.put ( "validate", new java.lang.Integer(12));
		m_opsHash.put ( "get_bulk_cm_irp_operation_profile", new java.lang.Integer(13));
		m_opsHash.put ( "get_bulk_cm_irp_versions", new java.lang.Integer(14));
	}
	private String[] ids = {"IDL:BulkCmIRPSystem/BulkCmIRP:1.0"};
	public BulkCmIRPSystem.BulkCmIRP _this()
	{
		return BulkCmIRPSystem.BulkCmIRPHelper.narrow(_this_object());
	}
	public BulkCmIRPSystem.BulkCmIRP _this(org.omg.CORBA.ORB orb)
	{
		return BulkCmIRPSystem.BulkCmIRPHelper.narrow(_this_object(orb));
	}
	public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
		throws org.omg.CORBA.SystemException
	{
		org.omg.CORBA.portable.OutputStream _out = null;
		// do something
		// quick lookup of operation
		java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method );
		if ( null == opsIndex )
			throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
		switch ( opsIndex.intValue() )
		{
			case 0: // fallback
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				_out = handler.createReply();
				fallback(_arg0);
			}
			catch(ManagedGenericIRPSystem.InvalidParameter _ex0)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.InvalidParameterHelper.write(_out, _ex0);
			}
			catch(BulkCmIRPSystem.NotValidInCurrentStateException _ex1)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.NotValidInCurrentStateExceptionHelper.write(_out, _ex1);
			}
			catch(BulkCmIRPSystem.ConcurrencyException _ex2)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.ConcurrencyExceptionHelper.write(_out, _ex2);
			}
			catch(BulkCmIRPSystem.FallbackException _ex3)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.FallbackExceptionHelper.write(_out, _ex3);
			}
			catch(BulkCmIRPSystem.NoFallbackException _ex4)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.NoFallbackExceptionHelper.write(_out, _ex4);
			}
			catch(BulkCmIRPSystem.UnknownSessionIdException _ex5)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.UnknownSessionIdExceptionHelper.write(_out, _ex5);
			}
				break;
			}
			case 1: // download
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				java.lang.String _arg1=_input.read_string();
				_out = handler.createReply();
				download(_arg0,_arg1);
			}
			catch(ManagedGenericIRPSystem.InvalidParameter _ex0)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.InvalidParameterHelper.write(_out, _ex0);
			}
			catch(BulkCmIRPSystem.NotValidInCurrentStateException _ex1)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.NotValidInCurrentStateExceptionHelper.write(_out, _ex1);
			}
			catch(BulkCmIRPSystem.IllegalURLFormatException _ex2)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.IllegalURLFormatExceptionHelper.write(_out, _ex2);
			}
			catch(BulkCmIRPSystem.DownloadException _ex3)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.DownloadExceptionHelper.write(_out, _ex3);
			}
			catch(BulkCmIRPSystem.MaxSessionReachedException _ex4)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.MaxSessionReachedExceptionHelper.write(_out, _ex4);
			}
			catch(BulkCmIRPSystem.UnknownSessionIdException _ex5)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.UnknownSessionIdExceptionHelper.write(_out, _ex5);
			}
				break;
			}
			case 2: // get_session_ids
			{
			try
			{
				_out = handler.createReply();
				BulkCmIRPConstDefs.SessionIdListHelper.write(_out,get_session_ids());
			}
			catch(BulkCmIRPSystem.GetSessionIdsException _ex0)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.GetSessionIdsExceptionHelper.write(_out, _ex0);
			}
				break;
			}
			case 3: // get_session_status
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				org.omg.CORBA.StringHolder _arg1= new org.omg.CORBA.StringHolder();
				_out = handler.createReply();
				BulkCmIRPConstDefs.SessionStateHelper.write(_out,get_session_status(_arg0,_arg1));
				_out.write_string(_arg1.value);
			}
			catch(ManagedGenericIRPSystem.InvalidParameter _ex0)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.InvalidParameterHelper.write(_out, _ex0);
			}
			catch(BulkCmIRPSystem.GetSessionStatusException _ex1)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.GetSessionStatusExceptionHelper.write(_out, _ex1);
			}
			catch(BulkCmIRPSystem.UnknownSessionIdException _ex2)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.UnknownSessionIdExceptionHelper.write(_out, _ex2);
			}
				break;
			}
			case 4: // get_session_log
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				java.lang.String _arg1=_input.read_string();
				boolean _arg2=_input.read_boolean();
				_out = handler.createReply();
				get_session_log(_arg0,_arg1,_arg2);
			}
			catch(ManagedGenericIRPSystem.InvalidParameter _ex0)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.InvalidParameterHelper.write(_out, _ex0);
			}
			catch(BulkCmIRPSystem.IllegalURLFormatException _ex1)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.IllegalURLFormatExceptionHelper.write(_out, _ex1);
			}
			catch(BulkCmIRPSystem.GetSessionLogException _ex2)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.GetSessionLogExceptionHelper.write(_out, _ex2);
			}
			catch(BulkCmIRPSystem.UnknownSessionIdException _ex3)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.UnknownSessionIdExceptionHelper.write(_out, _ex3);
			}
				break;
			}
			case 5: // activate
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				BulkCmIRPConstDefs.ActivationModeTypeOpt _arg1=BulkCmIRPConstDefs.ActivationModeTypeOptHelper.read(_input);
				boolean _arg2=_input.read_boolean();
				_out = handler.createReply();
				activate(_arg0,_arg1,_arg2);
			}
			catch(ManagedGenericIRPSystem.InvalidParameter _ex0)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.InvalidParameterHelper.write(_out, _ex0);
			}
			catch(BulkCmIRPSystem.NotValidInCurrentStateException _ex1)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.NotValidInCurrentStateExceptionHelper.write(_out, _ex1);
			}
			catch(BulkCmIRPSystem.ConcurrencyException _ex2)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.ConcurrencyExceptionHelper.write(_out, _ex2);
			}
			catch(BulkCmIRPSystem.ActivateException _ex3)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.ActivateExceptionHelper.write(_out, _ex3);
			}
			catch(BulkCmIRPSystem.IllegalActivationModeException _ex4)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.IllegalActivationModeExceptionHelper.write(_out, _ex4);
			}
			catch(ManagedGenericIRPSystem.ParameterNotSupported _ex5)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.ParameterNotSupportedHelper.write(_out, _ex5);
			}
			catch(BulkCmIRPSystem.UnknownSessionIdException _ex6)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.UnknownSessionIdExceptionHelper.write(_out, _ex6);
			}
				break;
			}
			case 6: // get_bulk_cm_irp_notification_profile
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				_out = handler.createReply();
				ManagedGenericIRPConstDefs.MethodListHelper.write(_out,get_bulk_cm_irp_notification_profile(_arg0));
			}
			catch(ManagedGenericIRPSystem.InvalidParameter _ex0)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.InvalidParameterHelper.write(_out, _ex0);
			}
			catch(ManagedGenericIRPSystem.OperationNotSupported _ex1)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.OperationNotSupportedHelper.write(_out, _ex1);
			}
			catch(BulkCmIRPSystem.GetBulkCMIRPNotificationProfileException _ex2)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.GetBulkCMIRPNotificationProfileExceptionHelper.write(_out, _ex2);
			}
				break;
			}
			case 7: // abort_session_operation
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				_out = handler.createReply();
				abort_session_operation(_arg0);
			}
			catch(ManagedGenericIRPSystem.InvalidParameter _ex0)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.InvalidParameterHelper.write(_out, _ex0);
			}
			catch(BulkCmIRPSystem.NotValidInCurrentStateException _ex1)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.NotValidInCurrentStateExceptionHelper.write(_out, _ex1);
			}
			catch(BulkCmIRPSystem.AbortSessionOperationException _ex2)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.AbortSessionOperationExceptionHelper.write(_out, _ex2);
			}
			catch(BulkCmIRPSystem.UnknownSessionIdException _ex3)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.UnknownSessionIdExceptionHelper.write(_out, _ex3);
			}
				break;
			}
			case 8: // preactivate
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				BulkCmIRPConstDefs.VerificationModeTypeOpt _arg1=BulkCmIRPConstDefs.VerificationModeTypeOptHelper.read(_input);
				BulkCmIRPConstDefs.ActivationModeTypeOpt _arg2=BulkCmIRPConstDefs.ActivationModeTypeOptHelper.read(_input);
				boolean _arg3=_input.read_boolean();
				_out = handler.createReply();
				preactivate(_arg0,_arg1,_arg2,_arg3);
			}
			catch(BulkCmIRPSystem.ConcurrencyException _ex0)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.ConcurrencyExceptionHelper.write(_out, _ex0);
			}
			catch(ManagedGenericIRPSystem.InvalidParameter _ex1)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.InvalidParameterHelper.write(_out, _ex1);
			}
			catch(BulkCmIRPSystem.IllegalVerificationModeException _ex2)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.IllegalVerificationModeExceptionHelper.write(_out, _ex2);
			}
			catch(BulkCmIRPSystem.UnknownSessionIdException _ex3)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.UnknownSessionIdExceptionHelper.write(_out, _ex3);
			}
			catch(BulkCmIRPSystem.PreactivateException _ex4)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.PreactivateExceptionHelper.write(_out, _ex4);
			}
			catch(ManagedGenericIRPSystem.ParameterNotSupported _ex5)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.ParameterNotSupportedHelper.write(_out, _ex5);
			}
			catch(BulkCmIRPSystem.NotValidInCurrentStateException _ex6)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.NotValidInCurrentStateExceptionHelper.write(_out, _ex6);
			}
			catch(ManagedGenericIRPSystem.OperationNotSupported _ex7)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.OperationNotSupportedHelper.write(_out, _ex7);
			}
			catch(BulkCmIRPSystem.IllegalActivationModeException _ex8)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.IllegalActivationModeExceptionHelper.write(_out, _ex8);
			}
				break;
			}
			case 9: // end_session
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				_out = handler.createReply();
				end_session(_arg0);
			}
			catch(ManagedGenericIRPSystem.InvalidParameter _ex0)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.InvalidParameterHelper.write(_out, _ex0);
			}
			catch(BulkCmIRPSystem.NotValidInCurrentStateException _ex1)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.NotValidInCurrentStateExceptionHelper.write(_out, _ex1);
			}
			catch(BulkCmIRPSystem.EndSessionException _ex2)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.EndSessionExceptionHelper.write(_out, _ex2);
			}
			catch(BulkCmIRPSystem.UnknownSessionIdException _ex3)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.UnknownSessionIdExceptionHelper.write(_out, _ex3);
			}
				break;
			}
			case 10: // start_session
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				_out = handler.createReply();
				start_session(_arg0);
			}
			catch(BulkCmIRPSystem.SessionIdInUseException _ex0)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.SessionIdInUseExceptionHelper.write(_out, _ex0);
			}
			catch(ManagedGenericIRPSystem.InvalidParameter _ex1)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.InvalidParameterHelper.write(_out, _ex1);
			}
			catch(BulkCmIRPSystem.StartSessionException _ex2)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.StartSessionExceptionHelper.write(_out, _ex2);
			}
			catch(BulkCmIRPSystem.MaxSessionReachedException _ex3)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.MaxSessionReachedExceptionHelper.write(_out, _ex3);
			}
				break;
			}
			case 11: // upload
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				java.lang.String _arg1=_input.read_string();
				java.lang.String _arg2=_input.read_string();
				BulkCmIRPConstDefs.SearchControl _arg3=BulkCmIRPConstDefs.SearchControlHelper.read(_input);
				_out = handler.createReply();
				upload(_arg0,_arg1,_arg2,_arg3);
			}
			catch(BulkCmIRPSystem.ConcurrencyException _ex0)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.ConcurrencyExceptionHelper.write(_out, _ex0);
			}
			catch(ManagedGenericIRPSystem.InvalidParameter _ex1)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.InvalidParameterHelper.write(_out, _ex1);
			}
			catch(BulkCmIRPSystem.UnknownSessionIdException _ex2)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.UnknownSessionIdExceptionHelper.write(_out, _ex2);
			}
			catch(BulkCmIRPSystem.IllegalFilterFormatException _ex3)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.IllegalFilterFormatExceptionHelper.write(_out, _ex3);
			}
			catch(BulkCmIRPSystem.IllegalScopeLevelException _ex4)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.IllegalScopeLevelExceptionHelper.write(_out, _ex4);
			}
			catch(BulkCmIRPSystem.IllegalDNFormatException _ex5)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.IllegalDNFormatExceptionHelper.write(_out, _ex5);
			}
			catch(BulkCmIRPSystem.NotValidInCurrentStateException _ex6)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.NotValidInCurrentStateExceptionHelper.write(_out, _ex6);
			}
			catch(BulkCmIRPSystem.MaxSessionReachedException _ex7)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.MaxSessionReachedExceptionHelper.write(_out, _ex7);
			}
			catch(BulkCmIRPSystem.IllegalURLFormatException _ex8)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.IllegalURLFormatExceptionHelper.write(_out, _ex8);
			}
			catch(BulkCmIRPSystem.IllegalScopeTypeException _ex9)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.IllegalScopeTypeExceptionHelper.write(_out, _ex9);
			}
			catch(BulkCmIRPSystem.UploadException _ex10)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.UploadExceptionHelper.write(_out, _ex10);
			}
				break;
			}
			case 12: // validate
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				BulkCmIRPConstDefs.ActivationModeTypeOpt _arg1=BulkCmIRPConstDefs.ActivationModeTypeOptHelper.read(_input);
				_out = handler.createReply();
				validate(_arg0,_arg1);
			}
			catch(ManagedGenericIRPSystem.InvalidParameter _ex0)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.InvalidParameterHelper.write(_out, _ex0);
			}
			catch(BulkCmIRPSystem.NotValidInCurrentStateException _ex1)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.NotValidInCurrentStateExceptionHelper.write(_out, _ex1);
			}
			catch(ManagedGenericIRPSystem.OperationNotSupported _ex2)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.OperationNotSupportedHelper.write(_out, _ex2);
			}
			catch(BulkCmIRPSystem.ConcurrencyException _ex3)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.ConcurrencyExceptionHelper.write(_out, _ex3);
			}
			catch(BulkCmIRPSystem.IllegalActivationModeException _ex4)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.IllegalActivationModeExceptionHelper.write(_out, _ex4);
			}
			catch(ManagedGenericIRPSystem.ParameterNotSupported _ex5)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.ParameterNotSupportedHelper.write(_out, _ex5);
			}
			catch(BulkCmIRPSystem.UnknownSessionIdException _ex6)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.UnknownSessionIdExceptionHelper.write(_out, _ex6);
			}
			catch(BulkCmIRPSystem.ValidateException _ex7)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.ValidateExceptionHelper.write(_out, _ex7);
			}
				break;
			}
			case 13: // get_bulk_cm_irp_operation_profile
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				_out = handler.createReply();
				ManagedGenericIRPConstDefs.MethodListHelper.write(_out,get_bulk_cm_irp_operation_profile(_arg0));
			}
			catch(ManagedGenericIRPSystem.InvalidParameter _ex0)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.InvalidParameterHelper.write(_out, _ex0);
			}
			catch(ManagedGenericIRPSystem.OperationNotSupported _ex1)
			{
				_out = handler.createExceptionReply();
				ManagedGenericIRPSystem.OperationNotSupportedHelper.write(_out, _ex1);
			}
			catch(BulkCmIRPSystem.GetBulkCMIRPOperationProfileException _ex2)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.GetBulkCMIRPOperationProfileExceptionHelper.write(_out, _ex2);
			}
				break;
			}
			case 14: // get_bulk_cm_irp_versions
			{
			try
			{
				_out = handler.createReply();
				ManagedGenericIRPConstDefs.VersionNumberSetHelper.write(_out,get_bulk_cm_irp_versions());
			}
			catch(BulkCmIRPSystem.GetBulkCmIRPVersionsException _ex0)
			{
				_out = handler.createExceptionReply();
				BulkCmIRPSystem.GetBulkCmIRPVersionsExceptionHelper.write(_out, _ex0);
			}
				break;
			}
		}
		return _out;
	}

	public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)
	{
		return ids;
	}
}
